# SH file to run all the code for "Self-Constrained Hand-to-Mouth" by Michael Gelman
# OS Information - 4.15.0-121-generic #123-Ubuntu SMP

#create folders for tables and figures
mkdir -p tab
mkdir -p fig

#empirical tables and figures (stata version 16)
stata-mp -b do SelfConstrained

#model tables and figures (matlab version R2020a)
matlab -batch simulate_model_standard
matlab -batch simulate_model_hyperbolic
